@page {
    size: A4 landscape;
    margin: 10mm;
}

html {
    background-color: grey;
}

body {
    /*预览时上面留白5mm*/
    margin: 5mm auto 0px auto;
    /*预览时 纸张上边距10mm*/
    padding-top: 10mm;
    /*预览时为纸张宽度297mm*/
    width: 297mm;
    height: auto;
    background-color: white;
}

table {
    font-size: 12px;
}

div {
    padding: 0;
    margin: 0;
}

div.content {
    overflow: hidden;
    /*纸张宽度去掉左右边距297-10-10=277*/
    width: 277mm;
    /*纸张高度减去上下边距210-10-10=190mm*/
    height: 190mm;
    /*左右auto 自动剧中*/
    margin: 0 auto 0 auto;
    /*预览时显示边框*/
    border: solid 1px blue;
    box-sizing: border-box;
    /*内部内容需要绝对定位，所以这里必须是Relative*/
    position: relative;
}


div.newpage {
    width: 100%;
    height: 10mm;
    margin: 10mm 0 10mm 0;
    background-color: grey;
}

@media print {
    body {
        /*实际打印时恢复为内容宽度*/
        width: 277mm;
        /*实际打印时去掉空白及内边距*/
        margin-top: 0;
        padding-top: 0;
    }

    div.content {
        /*实际打印时不显示内容边框*/
        border: none;
        /*实际打印时安全度为100%*/
        width: 100%;
        margin: 0px;
        padding: 0px;
        page-break-after: always;
    }

    div.newpage {
        display: none;
    }
}

p.Title {
    margin: 0px;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
}

p.top {
    font-size: 12px;
    line-height: 13px;
    margin-bottom: 4px;
}

span.right {
    position: absolute;
    right: 0;
}

TR {
    height: 30px;
}

TD {
    border-right: solid 1px darkgrey;
    border-bottom: solid 1px darkgrey;
    vertical-align: middle;
    text-align: center;
    padding: 0px 5px 0px 5px;
}

table {
    border-top: solid 1px darkgrey;
    border-left: solid 1px darkgrey;
    width: 100%;
    height: auto;
    border-collapse: collapse;
}

p.pagecnt {
    line-height: 16px;
    font-size: 12px;
    text-align: center;
    margin: 0 0 0 -75px;
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 150px;
}